<%@ taglib uri="/struts-tags" prefix="s" %>

<div id="content">
<div class="post" >
	<h2 class="title"><s:property value="league.name"/>  League Members</h2>

	<div class="entry">
		<p class="meta"><small></small></p>
				<table width="100%" align="center" border="0">
			<tr>
				<th>Name</th>
				<th>Email</th>
				<th>Action</th>
			</tr> 
		<s:iterator id="userTemp" value="members" >
			<tr class="rowA">
				<td>
					<s:url id="details" namespace="/user" action="details">
						<s:param name="id"/>
						<s:param name="user.id" value="userId"/>
					</s:url>
					<s:a href="%{details}">
						<s:property value="firstName"/> <s:property value="lastName"/>
					</s:a>
				</td>
				<td><s:property value="email"/></td>
				<td>
					<s:url id="removeMember" namespace="/league" action="removeMember">
						<s:param name="userId" value="userTemp.id"/>
						<s:param name="id" value="id"/>
					</s:url>
					<s:a href="%{removeMember}" onclick="return window.confirm('Do you really remove this user?');">Remove</s:a>
				</td>
			</tr>
		</s:iterator>
		</table>	
	</div>
</div>
</div>
